From c708db4acb8754f6985c20954bd5d3dfc44370ce Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 22 Jun 2005 20:13:45 +0000 Subject: [PATCH] Fix overlapping string copy exposed by tef. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1217 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index e22b83d1a..d3a958284 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -805,7 +805,7 @@ char * str_utf8_to_cp1252( const char * str ) } } *cur = (char)value; - strcpy( cur+1, cur+bytes ); + memmove(cur+1, cur+bytes, strlen(cur+bytes) + 1); } cur++; } -- 2.30.2